home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / conf / test / conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-28  |  1.7 KB  |  51 lines

  1. #
  2. /*          This contains the most site-dependent definitions             */
  3.  
  4. #define USERSIZE    8        /* max length of a user system name   */
  5. #define    MAILIDSIZ  64        /* max length of a mailid,
  6.                  * must be at least USERSIZE.        */
  7. #define MSGNSIZE   14           /* max length of a message file name  */
  8. #define FILNSIZE   64           /* max length of full file name       */
  9. #define ADDRSIZE  256        /* max length of an address           */
  10. #define LINESIZE  256        /* max length of a line/record        */
  11.  
  12. #define    NUMCHANS   20        /* max number of channels */
  13. #define NUMTABLES  30        /* max number of tables */
  14. #define NUMDOMAINS 20        /* max number of domains */
  15.  
  16. /************  DIAL IN/OUT (CH_PHONE / SLAVE) TAILORING  *****************/
  17.  
  18. #define DL_TRIES    2             /* number of re-connects OK for phone */
  19. #define DL_RCVSZ    255           /* longest line receivable            */
  20. #define DL_XMTSZ    255           /* longest line sendable              */
  21.  
  22. /****************  JNTMAIL Tailoring *******************/
  23.  
  24. #undef    JNTMAIL
  25. #undef    BOTHEND
  26. #undef    VIATRACE
  27.  
  28. /**************** Include File Tailoring ****************************/
  29.  
  30. #include <time.h>
  31.  
  32. /* fine S5DIRENT    /* Use <dirent.h> && struct dirent */
  33. #define BSDDIRECT    /* Use <sys/dir.h> && struct direct */
  34. #ifdef S5DIRENT
  35. #include <dirent.h>
  36. #define dirtype dirent
  37. #else
  38. #include <sys/dir.h>
  39. #define dirtype direct
  40. #endif
  41.  
  42. /********************* Privileged UIDs *************************/
  43.  
  44. /*
  45.  *  This can be a macro as give here or you can provide a function.
  46.  *  It should always authorize root and mmdf.
  47.  *  The global variable effecid is assumed to have the MMDF uid in it.
  48.  */
  49.  
  50. #define    PRIV_USER(x) ((x)==0 || (x)==1 || (x)==effecid)
  51.